package com.stockz.ui.swing.charting.listener;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import com.stockz.core.util.Global;
import com.stockz.ui.swing.charting.util.RepaintStockChartPanelUtil;
import com.stockz.ui.swing.charting.util.UIChartingConstant;
import com.stockz.ui.swing.charting.view.StockChartPanel;

public class ScrollListener extends MouseAdapter {
	@Override
	public void mouseDragged(MouseEvent e) {
		RepaintStockChartPanelUtil.repaintStockChartPanel((StockChartPanel)Global.get(UIChartingConstant.SelectedStockChartPanel));
	}
	@Override
	public void mouseReleased(MouseEvent e) {
		RepaintStockChartPanelUtil.repaintStockChartPanel((StockChartPanel)Global.get(UIChartingConstant.SelectedStockChartPanel));
	}
}
